package com.ruoyi.leader.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.leader.mapper.TGroupLeaderMapper;
import com.ruoyi.leader.domain.TGroupLeader;
import com.ruoyi.leader.service.ITGroupLeaderService;

/**
 * 团长信息Service业务层处理
 * 
 * @author zzy
 * @date 2025-08-17
 */
@Service
public class TGroupLeaderServiceImpl implements ITGroupLeaderService 
{
    @Autowired
    private TGroupLeaderMapper tGroupLeaderMapper;

    /**
     * 查询团长信息
     * 
     * @param id 团长信息主键
     * @return 团长信息
     */
    @Override
    public TGroupLeader selectTGroupLeaderById(String id)
    {
        return tGroupLeaderMapper.selectTGroupLeaderById(id);
    }

    /**
     * 查询团长信息列表
     * 
     * @param tGroupLeader 团长信息
     * @return 团长信息
     */
    @Override
    public List<TGroupLeader> selectTGroupLeaderList(TGroupLeader tGroupLeader)
    {
        return tGroupLeaderMapper.selectTGroupLeaderList(tGroupLeader);
    }

    /**
     * 新增团长信息
     * 
     * @param tGroupLeader 团长信息
     * @return 结果
     */
    @Override
    public int insertTGroupLeader(TGroupLeader tGroupLeader)
    {
        return tGroupLeaderMapper.insertTGroupLeader(tGroupLeader);
    }

    /**
     * 修改团长信息
     * 
     * @param tGroupLeader 团长信息
     * @return 结果
     */
    @Override
    public int updateTGroupLeader(TGroupLeader tGroupLeader)
    {
        return tGroupLeaderMapper.updateTGroupLeader(tGroupLeader);
    }

    /**
     * 批量删除团长信息
     * 
     * @param ids 需要删除的团长信息主键
     * @return 结果
     */
    @Override
    public int deleteTGroupLeaderByIds(String[] ids)
    {
        return tGroupLeaderMapper.deleteTGroupLeaderByIds(ids);
    }

    /**
     * 删除团长信息信息
     * 
     * @param id 团长信息主键
     * @return 结果
     */
    @Override
    public int deleteTGroupLeaderById(String id)
    {
        return tGroupLeaderMapper.deleteTGroupLeaderById(id);
    }
}
